package spec.lijunyao.unit4.outclazz.ball;

/**
 * 父类，球类
 */
public class Ball {
    // 成员变量
    private String name;
    private String dx;
    private String cl;
    private String wight;
    private String rq;
    final static String tianchong = "空气";
    static String shape = "圆";
    // 构造方法
    public Ball() {
    }
    public Ball(String name, String dx, String cl, String wight, String rq) {
        this.name = name;
        this.dx = dx;
        this.cl = cl;
        this.wight = wight;
        this.rq = rq;
    }
    //  成员方法
    public String slefIntro() {
        return "Ball{" +
                "name='" + name + '\'' +
                ", dx='" + dx + '\'' +
                ", cl='" + cl + '\'' +
                ", wight='" + wight + '\'' +
                ", rq='" + rq + '\'' +
                '}';
    }
    public String play(){
        return "每天打会球，健康一辈子。";
    }
}